cmake_minimum_required(VERSION 3.8)

project(rk_demo)

add_definitions(-g -D__EXPORTED_HEADERS__)

add_definitions(-g -D__EXPORTED_HEADERS__  -Wno-incompatible-pointer-types)

include_directories(
	${PROJECT_SOURCE_DIR}/.
	${PROJECT_SOURCE_DIR}/lvgl
	${PROJECT_SOURCE_DIR}/lv_drivers
	${PROJECT_SOURCE_DIR}/home
)

add_definitions(-DUSE_MOUSE=1 -DUSE_EVDEV=1 -DUSE_RKADK=1 -DDEBUG=1)

aux_source_directory(${PROJECT_SOURCE_DIR}/home GUISRC)
aux_source_directory(${PROJECT_SOURCE_DIR}/ SRCS)

file(GLOB_RECURSE SRCS "*.cpp" "*.c" "*.h")

set(ALLSRC ${LIBSRC} ${GDISRCS} ${CORESRC} ${SRCS})

add_library(mouse_cursor_icon OBJECT ${PROJECT_SOURCE_DIR}/src/mouse_cursor_icon.c)

add_executable(${PROJECT_NAME} ${GLOB_RECURSE})


